<script setup lang="ts">
import { RouterView } from 'vue-router'
import { ElConfigProvider } from 'element-plus'
import { ref } from 'vue'
import { UserFilled } from "@element-plus/icons-vue";
import service from '@/request/index.ts'

const faqingqiu = ()=>{

  service({
    url:'login',
    method:'POST',
    data:{},
    success(data){
      console.log(data)
    }
  })

}

import zhCn from 'element-plus/es/locale/lang/zh-cn'
const time = ref('')

let gz = 9000

console.dir(gz)

time.value="2024"

console.dir(time)

const ass=function(){
  
}
</script>

<template>
  <el-config-provider :locale="zhCn">
    <header>
    <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />



    <el-button @click="faqingqiu" type="primary" style="margin-bottom:100px">Primary</el-button>




    <br /><el-icon><UserFilled /></el-icon>

    <br>

    <svg>
      <use  xlink:href="#icon-add" fill="red"></use>
    </svg>

    <svg>
      <use  xlink:href="#icon-call" fill="red"></use>
    </svg>
    <el-date-picker
        v-model="time"
        type="date"
        placeholder="选择时间"
        
      />
   
  </header>

  <HelloWorld></HelloWorld>

  <RouterView />
  </el-config-provider>
  
</template>

<style scoped>
header {
  line-height: 1.5;
  max-height: 100vh;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

nav {
  width: 100%;
  font-size: 12px;
  text-align: center;
  margin-top: 2rem;
}

nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    text-align: left;
    margin-left: -1rem;
    font-size: 1rem;

    padding: 1rem 0;
    margin-top: 1rem;
  }
}
</style>
